package com.aube.control.player;

import android.media.MediaPlayer;

import com.bokecc.sdk.mobile.play.DWMediaPlayer;
import com.huyn.baseframework.utils.Utils;

/**
 * Created by huyaonan on 16/7/18.
 */
public abstract class MyMediaPlayerListener implements DWMediaPlayer.OnBufferingUpdateListener,
        DWMediaPlayer.OnPreparedListener, DWMediaPlayer.OnErrorListener, MediaPlayer.OnCompletionListener, MediaPlayer.OnSeekCompleteListener {

    @Override
    public void onBufferingUpdate(MediaPlayer mp, int percent) {

    }

    @Override
    public void onCompletion(MediaPlayer mp) {

    }

    @Override
    public boolean onError(MediaPlayer mp, int what, int extra) {
        Utils.Log("error", "what= " + what +"extra= " + extra );
        return false;
    }

    @Override
    public void onPrepared(MediaPlayer mp) {

    }

    @Override
    public void onSeekComplete(MediaPlayer mp) {

    }
}